package com.njwb.remote.service;

import com.njwb.common.json.ResponseResult;
import com.njwb.pojo.Emp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;

@Service
@FeignClient("spring-cloud-nacos-seata-emp")
public interface FeignRemoteEmpService {
    @PostMapping("/emp")
    public ResponseResult add(@SpringQueryMap Emp emp);
}
